package com.qingkai.onlineshop.data.dao

import androidx.room.Dao
import androidx.room.Insert
import androidx.room.Query
import com.qingkai.onlineshop.data.entity.PicUrlEntity

@Dao
interface PicUrlDao {
    @Insert
    suspend fun insertAll(picUrls: List<PicUrlEntity>)

    @Query("SELECT * FROM pic_url WHERE itemId = :itemId")
    suspend fun getPicsByItemId(itemId: Int): List<PicUrlEntity>
}